package com.ruoyi.magazine.subscribe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单与杂志的映射对象 business_subscribe
 * 
 * @author duanxinli
 * @date 2023-11-13
 */
public class Subscribe extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 订单号id */
    @Excel(name = "订单号id")
    private String orderId;

    /** 杂志id */
    @Excel(name = "杂志id")
    private String magazineId;

    /** 册数 */
    @Excel(name = "册数")
    private Long num;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setMagazineId(String magazineId) 
    {
        this.magazineId = magazineId;
    }

    public String getMagazineId() 
    {
        return magazineId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("magazineId", getMagazineId())
            .append("num", getNum())
            .toString();
    }
}
